import request from '@/utils/request'
import qs from 'qs'
const Host = process.env.VUE_APP_BASE_URL
export function download(params) {
  return request({
    url: Host + '/TeacherCurriculumBLL/download',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: qs.stringify({ id: params })
  })
}
export function classList(params) {
  return request({
    url: Host + '/TaskBLL/teacherTaskClassList',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function selectByCId(params) {
  return request({
    url: Host + '/SorceBLL/selectByCId',
    method: 'post',
    headers: {
      'Content-Type': 'application/json'
    },
    data: params
  })
}

export function edit(params) {
  return request({
    url: Host + '/SorceBLL/update',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded'
    },
    data: qs.stringify({ data: JSON.stringify(params) })
  })
}
